import axiosInstance from "../utils/axios.ts";
import type {LoginParams} from "../views/login/index.vue";
import type {UserInfo} from "../types/account";


export const login = (loginParams: LoginParams) => {
    return axiosInstance.post<any, UserInfo>('/login/login', loginParams)
}
